<!-- 邮费模板管理 -->
<template>
  <SingleFieldManager :config="config" :customAdd="true" @add="add" @modify="modify" @show="show" />
</template>

<script setup>
import SingleFieldManager from "@com/SingleFieldManager.vue";
import useRoute from "@util/router";
const config = {
  name: "邮费模板",
  type: 'express',
  route: 'expressmanager'
};
const route = useRoute()
function add() {
  route.push({ name: 'expressdetails', query: { type: 'add' } })
}
function modify(data) {
  route.push({ name: 'expressdetails', query: { type: 'modify', code: data.id } })
}
function show(data) {
  route.push({ name: 'expressdetails', query: { type: 'show', code: data.id } })
}
</script>
